package homework.mapper;

import homework.entity.Module;
import homework.entity.Role;
import homework.entity.User;

import java.util.List;

public interface Mapper {
    public int insert(User user);
    public int delete(int id);
    public int update(User user);
    public List<User> select(String name);
    //查询某一个的拥有的角色
    public List<Role> select1(String name);
    //查询某角色对应的用户
    public User select2(String s);
    //查询某一角色的权限有哪些
    public List<Module> select3(String s);
    //查询某一用户的权限有哪些
    public List<Module> select4(String name);
    //查询有某一权限的用户都有谁
    public List<User> select5(String s);
}
